package com.maple.soa.config;

import com.maple.soa.pojo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

/**
 * @author lijian
 * @date 2020/7/6
 */
@Component
public class UserConfig {
    @Bean
    public User user1() {
        User user = new User();
        user.setId(1L);
        user.setName("Maple");
        user.setAge(29);
        return user;
    }

    @Bean
    public User user2() {
        User user = new User();
        user.setId(2L);
        user.setName("lijian");
        user.setAge(30);
        return user;
    }

    @Bean
    public User user3() {
        User user = new User();
        user.setId(3L);
        user.setName("李健");
        user.setAge(31);
        return user;
    }
}
